package org.example.demo14_observe;

public class EmergencyDoor implements ResponseDevice{
    @Override
    public void update(int temperature) {
        if (temperature > 60) {
            System.out.println("Emergency door is opening!");
        }else{
            System.out.println("Emergency door is closing!");
        }
    }
}
